﻿using Hangfire;
using Volo.Abp.BackgroundJobs;
using Volo.Abp.DependencyInjection;

namespace Cjj.Exam.Hangfire
{
    [Queue("alpha")]
    public class EmailSendingJob
         : AsyncBackgroundJob<EmailSendingArgs>, ITransientDependency
    {
        private readonly IEmailSender _emailSender;

        public EmailSendingJob()
        {

        }

        public override async Task ExecuteAsync(EmailSendingArgs args)
        {
            //await _emailSender.SendAsync(
            //    args.EmailAddress,
            //    args.Subject,
            //    args.Body
            //);
        }
    }
}
